Mam
Yes it is a TM Joint problem because of which you are experiencing clicking sound.
Next Steps
You should visit a Dentist near you with a prior appointment. He will prescribed you some muscle relaxants and will advise you a OPG/ CBCT after that further treatment will be planned.
Health Tips
While yawning don't widely open your mouth. Avoid foods which requires more efforts to eat. Always have Morsel(small portion of) of food. Have atleast 7 hours sleep at night.
Hope it helps.