Android is still better than iOS in that regard, because it's open source and you can disable anything. Just side-loading might not be enough.
Bury them deep in settings, have a ton of recurring confirmation prompts, etc., but we should have laws to ensure these options are available on the devices we own.
Wouldn't surprise me if it could though.
The best option would be AOSP without google bits included.
This is also why 40%-Tencent-owned Epic Games have been attacking Apple non-stop ever since they purposely got themselves banned from the App Store to mount a PR lawsuit campaign to try to force Apple to allow third-party app installations, which coincidentally happened right after Trump signed an executive order that would ban Tencent’s WeChat.