LAN Communication

Are 2 Physical LAN Port are same as Port-based VLAN?

Please explain with example