Soybeans are rich in protein and calcium, and carrots contain carotenoids, which contribute to bone development.
So it makes sense, but it won't take a day or two to get the result. You should keep eating. And you don't have to eat what you said. There are many alternative foods.
Protein: Fish, beans, eggs and milk.
Calcium: milk, tofu
VA: Dark green or orange fruits and vegetables, animal offal.