Yes!
Adding to this, try not to reinvent the wheel. If you're trying to code something which is already there and open-sourced, go for it; include it in the project and work on it.
Ask for 1/2 of the fixed amount / working hours upfront. This will ensure that your client is actually interested and won't easily dump the project.