Creaky knees

I used to enjoy doing exercises like squats and knee bends but now anytime I do my knees pop and make horrible noises. Should I avoid exercises that work your knees?