Correct - NFHS Rule 3, Section 5 states:@Kevsam appears to be asking about US high school soccer. US high school does not use the laws of the game, but uses a set of rules from NFHS that are very close, but not exact. Nonetheless, I'm pretty sure the NFHS rules are the same on this provision and the swap is permissible.
The goalkeeper may change places with a player on the field whenever the clock is stopped or a substitution takes place, provided the uniforms are legal. Any time the goalkeeper is changed, a referee shall be notified.