It depends on the terms of the homeowners agreement and any other contracts or documents govering your residency in the community. There is no inherent legal requirement for notice prior to a fine, so if these documents allow a fine without notice, that is legal.