If you have an ISP (Internet Service Provider) set up and supplying you a service, then a modem is key to having Internet connectivity.
Most ISPs will provide a modem for the service they supply you. However, buying your own modem is also fine as long as you know how to set it up or have support in getting it to the right configuration for your ISP.