Is it legit to make games and earn money when you're under 18

Hi! My name is Noga and I’m 14 years old. I want to make game that contains IAP (In-App Purchases). The money that from IAP will goes to my dad’s bank account because I don’t have a bank account and a credit card. I just want to know if is that legit for a 14 years old kid to make a game and use dad’s account to get the money.

That dependents on country as well state (if US) possibly. Can you state where you from?

I’m from California