On demand formula fed?

Pediatrician recommends 2oz every 2 hours. That’s like 24oz total in a 24 hour period. Sometimes she gets hunger cues and wants more but scared to overfeed her. Could I feed her on demand even if she is formula fed? I know its harder to digest than breastmilk. Or should I strictly stay 2oz every 2 hrs?