I struggle to sit cross legged

I’ve always struggled to sit cross legged on my right side. When I do, it’s painful and once I stand up I’m limping. Is this something I can improve over time?