No, but you can always whitelist the server to have it so only you can connect / you're friends can't connect whilst you're away. Once you come back then you can turn off the whitelist or keep it on but add you're friends to it.
Commands needed:
/whitelist on - puts the server in whitelist mode.
/whitelist add (player) - allows you to whitelist specific players.
/whitelist remove (player) - removes a player from the whitelist.