I was getting pains in my left knee the day after long rides and sometimes waking up in the middle of the night and having to stretch my leg out.
I had a half fit done about 3 years ago and it was obvious to them that my left knee was bending inwards to the top tube under load. Tthey added some of the Specialized wedges in my shoes (3 in the left and 1 in the right) to get my knees tracking straight and hey presto no pain since.
I’d recommend that 1000000000000%
They also did a quick check of seat height and position measuring all my angles etc, which got me most of the way there but I have tweaked it around since based on feel. That part I’d say isn’t necessary really.