Were medieval knights restricted to use some weapons, or they could buy whatever they wanted?
There weren't any constraints on what weapons a knight or man-at-arms could purchase, no, but practically speaking, certain weapons fared better against armoured opponents than others, and were thus more popular.
Out of curiosity, what led you to ask this?