Is building Quarters + Marine Barracks on every station/hab overkill?

Should I rather use those two spots for layered defense? I'm close to the year 2027