It is not safe to install an extension that Firefox has not verified. However, there are some exceptions. If you are a developer testing an extension, or you have got it from a trusted source, or when it's a paid extension that has not been uploaded to the store. Nevertheless, ensure that it is safe to use.