You can do that but is poor solution, because you will never have the full features and control that you have with a local device, that is also cheap and effective like a CME router.
Moreover, if the Internet circuit fails, none of the telephones will work. That is bad.