If your NAS is hooked directly to your modem/router and directly talking to the outside world then you can shut down ant computers on your network without problems.
If, on the other hand, you are using your computer to do any of the connecting to the outside world then it will have to keep running to do so.