I'd agree that you owe the company as much loyalty as they'd provide you. If layoffs were occurring and they needed to lay you off they aren't necessarily going to be worried about you. That is unless you've built relationships, which is the critical piece. Without them any forward progress in your career will be very difficult.
Keep Up with TechRepublic