It depends. If you download APK files from unknown source (eg just click a random link on the internet), your device's likely to be infected by malware and virus which are inserted into those APK files. However, there're still some reliable sites specializing in providing free and safe APK files like apkTovi and apkpure.