If I switch a private GitHub repository to public, will my edit history also be public?

If you want to hide history, you have do not have it. Thus - yes, create new repo from the files at HEAD of current.