Similar fashion. Not same though. Mercury is tidally locked to the sun with a 3:2 orbit to spin ration. They say this is due to gravity, but it is most certainly not. It is definitely because of the much moar powerful Electromagnetic Force, I assure you.
https://theplanets.org/mercury/