You should be able to but you may notice that your 24mm doesn't perform that well at close distances. If it is a lens with CRC, you may get some wierd look to the out of focus areas because CRC lenses are optimized specifically for one flange distance from the lens. Taking a CRC lens and moving it out is completely changing the formulation essentially so you will get something but it may not be spectacular.
Extension tubes usually work best on lenses with focal lengths longer than 50mm.
Phil Forrest