I mean when you're getting started that's pretty much the only option. No one is going to believe that you're going to be able to deliver an entire app or whatever until you have a couple on your resume. But you certainly shouldn't aspire to be billing by hour.
Isn't the first rule of consulting literally that you should be billing by value, not by hours?