They do not have the same meaning. someone who is headstrong will be opinionated, determined, a strong personality, maybe will over-ride other people's opinions and feelings a bit. Someone who is a 'stick in the mud' is a conservative type personality, who may resist change, be a bit cynical and perhaps a bit dull and boring!
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.