Hi and welcome!
Indeed and it should be possible to close of the ports. Here is an example of some snippets where we change the default ssh port 1022 to 2222. Also see the documentation and simply ask like you are doing now -)
I am sure others will jump in.
Again, welcome and enjoy!