Absolutely not! Some modems will listen for a dial tone and will not operate until it is detected. Now, there are hayes commands to disable this behanvior, but it may not support that command functionality. Moreover, the full line voltage may be needed, proper ringing, etc.
A PBX can be had...