I don't think this is feasible or makes sense. This is because of the positions of the armies before Harpers Ferry fell.
In the first place, AP Hill was only part of Jackson's corps, but the positions were:
View attachment 421871
This is roughly how it looked when Harpers Ferry surrendered. If Harpers doesn't surrender then McLaws and Anderson probably lose most of their manpower and certainly all of their guns (as they'd need any escapees to evade over the Maryland Heights).
Now, there is no reason in principle why AP Hill could not have arrived sooner - he could have been part of Jackson's column (marched 15th), or marched with McLaws and Anderson (leaving on the 16th), and either way reached Sharpsburg before the fighting on the 17th. But there is a real risk involved because as of the night of the 16th AP Hill and Franklin are facing off over the Harpers Ferry fords.
If AP Hill marches for Sharpsburg earlier, it leaves the ford with at most one single brigade (Thomas's, historically) to protect it. There is nothing that would stop Franklin from attacking over the ford with his corps and then putting a division or two south of the Potomac blocking off the Shepherdstown Fords. This would trap Lee far more effectively than the planned movement by Burnside's 9th on the battlefield itself.