Medicine

Can pain medicine like ibuprofen cancel out birth control? I’ve been taking 1500mg+ the past 2 days because I have pain and I’m new to the pill so I was wondering if it cancels out or not?