if the heatsink is floating or grounded yes, as the only differences are the 7805 is more rugged and the 2405 has the tab insulated