Yes, apk files are free legal, these files are being designed specifically when your device has low storage and you want to install something as per your choice the apk files are the best option at that time.