This feature allows you to build a server that will answer a call, prompt the caller for a phone number, and place a second call to that phone number. The two “legs” of the call are joined together.
Yes, Asterisk will do what you ask it to do. You just need to learn how to ask politely Also, you haven’t specified what kind of “lines” you are considering connecting, because you may need additional hardware.
But bottom line is: Asterisk is capable. You need a box to install it, play with it, and learn it. To connect to a “line”, you may need line interface card.