Sex with my ex

Is it bad I want to have sex with my ex? Even though he dumped me because he didn't feel that a relationship was right for us.