Yes, you can use a custom domain with GitHub pages, and the web hosting cost is completely free, as long as your website is static.
You can make your website with Jekyll, GitHub Pages is designed to work with jekyll