Yes you can but you need to be careful, if he's HPT custom OS was say 01250210 does that mean anything to you? It doesn't to me either and this is where you can get caught by programming in the wrong year stock OS. This is where access to TIS2WEB is useful to get the stock program back in.
I know this is in the GenIII section but as we've digressed to E38's I'll mention that I've unlocked several E38's with HPT custom OS's and figured out what the stock OS should be, here's a short list (Aussie cars).
HPT = Standard
---------------------
01250210 = 12612381
01250219 = 12619078
01250223 = 12624402
01250228 = 12633016
That means it is locked if the read process does not start.
Cheers,
Ross