Only if you are using Internet Connection Sharing (which usually involves connecting the first computer to the router/modem and then connecting a second computer to the first by ethernet cable.
Assuming you have a router, the two computers are independent of each other.
You are about to answer a thread that has been inactive for more than 6 months. If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.