Do I need a knee x-ray for my knee pain?

Do I need a knee x-ray for my knee pain?