I'm not sure I understand the question but,
You could do that, however at the start of the game you wouldn't have any units unless you made another trigger to create the units you wanted.
If you are going to use standard melee AI then just you could just edit the peasant unit with whatever changes the custom one had.