Notwithstanding any other law to the contrary, an insurer may exclude coverage pursuant to a contractual agreement; provided, that the exclusion complies with this title.