Ask your doctor. I had hip problems and found for me that chiropractor and Pilates really helped. But your doctor should be the place to start.

However, if he/she simply suggests painkillers, go to another doctor. You want to find the source of the pain so you can correct what's causing it.