Yes the attack surface before and after is the same ergo this is not security at all. The difference between 22 and 2222 is a nominal delay on a port scan.
It would be far easier and more convenient to use a ip whitelist and a firewall to protect access to 22.
It would be far easier and more convenient to use a ip whitelist and a firewall to protect access to 22.