No sex at all or sex with an ex?

So my ex and I have only ever been with each other. We haven’t had sex in 3 months and want to sleep together so bad! I want to do it because i’m moving in two months so we probably won’t talk after that but is it a bad idea? Should I just have no sex or sex with him ? I don’t do hookups so he’s my only option