IVF questions

So I was in a serious relationship for 5 years. Almost 4 of those years we were TTC and had no luck. We were supposed to do

IVF

but the pressure of trying to conceive ended our relationship sadly. My question is would I still be allowed to go through with

IVF

and use donor sperm? Would a doctor tell me no since I’m only 24? Are there rules to it?