Can anyone tell me if it is okay to utilize mastic “outside” the building envelope?

Thank you.