Absolutely! As long as there is water and it is a regular load of laundry, the Magnetic Laundry System (MLS) is able to clean your clothes - regardless of the type of washer, and whether it is a shared washer or not!
You will likely need to remove the magnets after you are done with the wash cycle. It will not affect the effectiveness or endurance of the MLS.