Are radios legal for primary and secondary lines

Just wondering if having only a radio for primary and secondary phone lines is up to code? Or should you have another dedicated line and use the radio as a secondary phone line?