Yes! It is safe to do squats after giving birth! The squat is a fundamental exercise that everyone does on a regular basis. However, you may need to modify the exercise immediately postpartum.
Exercises To Avoid Postpartum [What You Need to Know]
What Are The Risks Of Exercising Too Soon Postpartum?
How to Exercise Postpartum Before 6 Weeks (Safely & Effectively)