Yes, macOS allows you to set a timer for delayed captures. Go to the "Capture" option in Grab and pick "Timed Screen."