new to digital stuff, have a question.

so, i learned recently about those digital interfaces and stuff like amplitube and whatnot, and i was wondering if there is a way to connect my laptop (guitar plugged into it) to my amp so i could use amplitube or another app as essentially a pedalboard/amp modeller