This has been asked over and over again.
Yes you can, no it doesn't work properly, you should not do this unless it's absolutely necessary and you have days and weeks to spend for no reason.
Caller ID will never work correctly in these situations.
If you need analog lines, get a gateway.