My knee makes a cracking sound when I come up from a squat, should I be concerned? It only causes pain somtimes

Osteoarthritis. Sound is called crepitus and is because of wear and tear causing osteoarthritis. Tylenol (acetaminophen) should be able to help with the pain if severe.
Kneecap or inside . This could be the patella called chondromalacia patella where the patella rubs along the knee bone or could be internal structures of the knee such as ligaments and bone .