No, Valheim can be played either as a singleplayer or a co-op game. But we would of course highly recommend you to play it with a few friends if possible!