Yes with limitations
Flexibility is important, but you should avoid certain postions in the immediate postoperative period because your hip may dislocate.
If it was a posterior approach, you should be avoid flexion and internal rotation. If it was an anterior approach, you should avoid extension and external rotation. You should check with your surgeon for his or her preferences.