To some extend, yes I can forbid my wardens to not go into the quarry, though this is not incredibly helpful since A: prisoners need more freedom of movement than just the quarry, they need to be able to move from their sleeping spot to it, B: they are doing more work than just mining at the quarry, they also need to do stone cutting and C: my pawns also help out with hauling items from the quarry and surrounding stockpiles. So this suggestion is not any better then my current fix, which allows me to let them work uninterrupted at night.