Yes. Whenever the border between two countries is crossed, the SIM card allows smooth connectivity. But this only works on the standards 2G and 3G.
NB-IoT does not generally support "seamless cell handover", i.e. the smooth connection flow during radio cell change. In this case, the connection is broken and must be re-established.
Please note that you need a roaming data package.