I've been in IT for over 20 years, mostly working in small to mid-sized companies. Small companies will let you go as soon as they feel a pinch. every company is the same, no matter their size.
You're expected to give two weeks' notice, but they can let you go without any notice.
Corporate loyalty is the dumbest trick employers ever pulled.