If I host a Minecraft multiplayer server (PC), can my friend play on it when I'm not online?

If I host a Minecraft multiplayer server (PC), can my friend play on it when I'm not online?

Only if your server is certified as Christian, and no swearing is allowed. If you are not certified, absolutely nothing will work, and you will be forced to call Apple then play Roblox

Yes so long as the computer is on and game is running.