The manpage for sshd states:
LOGIN PROCESS
When a user successfully logs in, sshd does the following:
<...>
3. Checks /etc/nologin; if it exists, prints contents and
quits (unless root).
It doesn't. Even if /etc/nologin exists, any user can still log in.