I've done it in the past, and it worked well for slow leaks. One limitation is that the pressure in the can is only about 40 pounds or so, making it useful only for low pressure tires. With a valve adapter, it could work on Presta valves, although I would worry about the stuff possibly gumming up the valve.
Paul