yes that is a possibility. it is not called molluscum contagiosum for nothing. this a common viral infection similar to warts. they can spread from direct contact from person-to-person (including sexual contact) and from fomites (surfaces that are freshly contaminated with the virus). there are several ways to treat them: ignore them for a few years until the go away (not usually an option) freezing them with liquid nitrogen or using a blistering agent called cantharidin that your medical provider can use. there are other treatment methods of course but these are the ones i use in my office.
could i have been infected with molluscum contagiasum from gym equipment?