Yes due to wrong posture you got this problem
Your lower back muscles are weak
Better take Ultrasound and IFT for 10-15 days then followed by lower back Strengthening Exercises
Posture correction Exercises
Leg Strengthening and Stretching Exercises
Next Steps
Visit nearest Physiotherapy clinic for complete assessment and treatment
Health Tips
Maintaine Ergonomic posture while working in front of a computer
Place a pillow under the knees while sleeping on the back
Place a pillow between the legs while sleeping on side ways
Use small/ thin pillow for sleeping
Use flat / hard bed for sleeping