It would work but eventually the lead and crap from the Rimfire rounds would ruin a very nice suppressor.

Most rimfire cans can be disassembled for cleaning. The centerfire cans... usually not. They typically are sealed units to withstand the pressure generated by a centerfire cartridge.

I'm sure there are some exceptions but I bet they're pricey.