Hi,
It's not wrong, it's perfectly OK, but very not recommended. Sooner or lated you'll meet your ex-boyfriend (it might be very uncomfortable to both of you), your new boyfriend might not feel comfortable with your ex, and it might damage their relations, if they remain friends they'll talk about you much....
Best regards,