Hi MarsBars
The hogs might find the building work disconcerting, especially to start with. It can depend on individual hogs. But hopefully they will eventually find the feed box. But what we feed the hogs is supplementary to what they find for themselves, so if they miss the food you offer for a short while, hopefully they’ll find some elsewhere and return to your garden once the work is completed.
You do, though, need to be very careful if there are any holes dug, to make sure that there is a way out for any hogs in case they fall in. You could use a plank of wood to make a temporary ramp for them. But also generally make sure there is nothing left around that they could get caught in. etc.
Good luck. I hope the work goes well and that the hogs will be there safe and well when it’s completed.