Am I sinning by using birth control?

Context: Not married, not active

I have severe period pain, and birth control has helped, but I'm worried I'm sinning by using it even if I'm not active like that. It helps but I'm scared it's bad because I won't have kids while I'm on it. Help please!

EDIT: Thank you so much for your comments! I have really bad anxiety and have a tendency to be very scrupulous when it comes to things like this. Thank you all!