That's right! A router routes traffic while a modem makes the connection to the internet.
Your devices connect to the router, while your modem connects to the internet.