It doesn't do any harm (as far as I know), but if you look in your stats screen, there is a count of the number of villagers that you have buried. That was how I realised that villagers could be buried