I made a Git repo locally then added remote URL and pushed it to GitHub. If I delete the local Git repo, will the remote repo still be ok?

Yes. Your local changes aren't bound to the remote changes in any way like OneDrive or Google Drive. With Git you need to explicitly sync between the remote and your local repo.

If you delete your local repository your operating system won't suddenly start issuing commands to sync your local changes to the remote.