Yes, you need to rest until the swelling subsides and indeed, the cold has an analgesic effect and increases local circulation, which helps to evacuate the waste products of the inflammation and to bring healing materials. A bag of ice cubes and cold water can be applied. This bag must be wrapped in a cloth before being applied to the joint, so as not to stick to the skin and thus, not to create frostbite, 3 times a day for 20 minutes, the icing limits the swelling.
The leg can also be elevated at night to help the knee swell. On the other hand, even if it is more comfortable, avoid putting a cushion under the knee, as it may block the extension and slow down the circulation. Stop elevating the leg when the knee is perfectly deflated.
In athletes who stop training, the swelling usually goes down in two to three weeks.
However, in case of pain, anti-inflammatory drugs can be taken for two or three days, but it is strongly recommended to do so only after a medical consultation and identification of the cause so that anti-inflammatory drugs do not mask it.