I'd be inclined to say yes they can.
Owning a dog isn't illegal in any state, yet some apartment owners, or Complex owners won't allow it.
Owning a waterbed is 50 state legal. Yet some property owners won't allow them to be used.
Same goes for smoking cigarettes. Some apartments/condos etc.. are only rented out to non-smokers.