Absolutely! Metal roofs offer a stable surface on which to install solar panels, so there should be no problem in having both.