The short answer is no but excessive knee cave (valgus) isn’t good this will create inefficiencies with force production. These mechanics therefore should be addressed.
But why does knee valgus happen?
We usually see this towards the bottom range of the squat where the adductor muscles are working the hardest. This makes sense as the adductor will cause some hip adduction along with extending the hip. As the effort level increase it’s common to see some degree of knee valgus occur.
There is also a common belief that knee valgus occurs due to having weak glutes muscles and having tight adductors but this doesn’t quite add up to what research says.
Greater quad recruitment relative to hamstring recruitment has been shown to be directly related to valgus knee cave. Muscles responsible for the external rotation of the femur, specifically the glute medius and maximus, may also be responsible if weak or not firing correctly.
Follow the science if you like here.
Whatever the reason having help with personal training sessions to adjust your technique would be of great benefit.