When you know something painful is going to happen to you before it happens if you take advil or ibuprofen before it happens will it help alleviate the pain?

Yes