yes, that is generally how it works. There are some edge cases and possible misconfigurations that would slow things down, but in general data between the devices on the switch will be gigabit and to/from the router (and thus the internet) will be limited to 100mbit.