No. Sparky the Fire Dog is a cartoon mascot created by the NFPA for fire-safety education. Jim Carrey has never portrayed him.
Carrey has played firefighters or safety-related characters in sketches, but never the official Sparky.