No, once you finish the Toriel fight, The Ruins are closed off. Make sure to get everything you can before leaving.