There is risk (of being caught), but the risk won't be much higher than, see, been hit by a car on your way to work. Life is full of risks, but you can't stop living, right ?
Just remember to reimburse your friend for any tax he may pay (CPP, EI, income).
Also remember while at job, you are him, same gender, same name.