Changing SSH port

If i wanna change ssh port i can just edit:

/etc/ssh/sshd_config and edit port and still everything works after changing ?

?

Yes. But when connecting, you have to specify that port too.