You are 100% correct. The switch is smart enough to connect the two computers directly when they are talking to each other. They will request their IPs from the router, connect to the outside through the router, etc., but if they want to talk to each other, it'll be strictly through the switch at gigaspeeds.