I have had knee problems for decades and frequently have a stiff knee. Cycling seems to help in my case, but that doesn't mean it will help in yours. My thought is, give the bike a try, and if the knee gets worse after the ride, lay off the riding for a while.