Can I be pregnant

I’ve had really bad cramps for the past week. I stopped taking my bc for about a week yet I’ve had unprotected sex about 4 times within a 2 week period. My period is so irregular that missing it doesn’t mean anything. how long should I wait to take a test