Yes, APK4F is legal because it distributes APKs that are free to distribute. In any case, it's always worth checking whether you have the legal right to download and use an app.