Sure, this is used in many situations.
For FXS to FXS, like the page says you will need the signal-type ext-signal command in the config.
This is usually used when you want to connect phones to a distant PBX:
PBX----GW----(voip)-----GW----phone
Hope this helps.