Refrigerator/freezer temps erratic

I have had issues with both the refrigerator & freezer temperatures much too hot as well as much too cold. I’m wondering if this may be a thermostat issue?
Thank you so much for your time!
Joan:)