If it were, a boss would pull a similar trick and fire them that day (which is obviously a terrible idea just like taking PTO). 2 weeks notice is more about the courtesy of fully transitioning your work so the rest of the crew are not left high and dry.