Yes, you can squat with a backpack. The backpack will work as a weight for you. And this can help you to build lower part muscles like the legs muscles.