It's certainly a good idea to buy when stocks are undervalued. However at the moment they are likely still overvalued, and it's also quite early days in this current sell-off.
I just sold my entire portfolio (apart from retirement funds) earlier this morning, as we want to buy a house later in the year and don't want to get trapped if the stock market completely crashes.