Yes if you are aligned with the market and with your strategy. Yes if you can execute it objectively. Yes if your strategy is still working (market conditions are maybe temporary not right for your strategy). Yes if fear and greed are not controlling you.
There are a lot of reasons why you should sit out. And the best time to do it is probably after several losses in a raw.
When one of the above reasons is not true anymore or temporary is probably the right time to take a break. Just take a break. It will be of great benefit in the long run. You don’t really need to understand why. Just take a break.
But hey, you could track your results after every 5 losses in a raw and see how are your results for the rest of the week on any of these weeks. If your results are good, just ignore the rule and keep trading.