Sex with your ex ?

Glo • 20
I broke up with my ex about a month ago. We ended up meeting up for "closure" but we ended up having sex. Is it wrong , since I don't have intentions of getting back together ?