Bro, are you seriously asking whether it is ok for a 30 something to have sex with a 20 something? Is this your first time interacting with humans?!
Maybe its a weird personal thing, but I find a 10 year age gap a bit extreme typically even in dating. I never dated anyone 5 years off from. For example, a 31 year old dating a 21 year old is gross.