Not in ice hockey, it’s far more of a specialist position than a football goalkeeper and there are rules that don’t allow it.
How it tends to work (in the NHL anyway) is each team has two goaltenders in their 20 man team for the game. The odds of going through both goaltenders in a single game are near exceptionally rare but just incase home teams are required to have an on call emergency goaltender in the building should just in case.