Answer
yes
Work Step by Step
The marginal cost of staying open includes the \$20 opportunity cost for your time and the \$6 cost for another hour of electricity.
Since the \$30 earned for the 2 additional haircuts exceeds the marginal cost of \$26, it makes sense to stay open.