The only "non-ok" aspect that might come into play is if you have dissimilar metals touchinging, i.e. aluminum of the heat sink and whatever metal the LED base is made of (if not aluminium) you could get galvanic corrosion given the environment. But still should be fine, IIRC most every heatsink out there for LEDs both commercial and DIY is aluminum.