Basically. As stated on wikipedia:
Hardware Port: A physical interface between a computer and other computers or devices
Software port: virtual data connection between computer programs, possibly through a computer network
So, you can think of them as being bridges between one intellect and another (whether it be a program or hardware).
In addition, both are data transfers in the form of bits from one register - or memory location - to another.
For most purposes, they are the same.
source share