Bit of advice needed please!

Michelle
Ladies,
I've injured my knee running and it's really painful; I was gonna start taking Ibuprofen as this is an anti-inflammatory but have heard you should take this while trying to conceive or whilst pregnant? Can anyone tell me if this is the case? 
Thanks x