Muscle and joint pain cause of anxiety?

I’ve had muscle and joint pain that literally makes it hurt to move and walk the past 3 days and I made a Dr appt but I wanted to know of anyone else has been thru the same?