See if you download the application from a valid website then it can be safe for you from where you can install the application. But if you download the application from any such website from where there is a risk of leaking your data, then in this case it will not be safe for you to enable Unknown Sources.