Yes! You can write one line of code to do this in your OnSave event handler. Search for Close in the InfoPath SDK and let me know if you don't find what you are looking for.
Patrick Halstead [InfoPath MVP]
InfoPathDev
Patrick Halstead
Project Manager at Qdabra