Yes. Because the game runs entirely in your browser (JavaScript) and does not require downloading executables, the security risk is virtually zero. Stick to repositories with many stars (★) and recent commits.
In 2025 and beyond, expect to see fully playable, texture-rich RPGs and shooters hosted on GitHub Pages that look indistinguishable from installed Steam games. Github Games Unblocked High Quality