Yes, you can use a custom domain name for your email. In fact, it is recommended that you do so to increase trust and show professionalism. Your emails should match your domain name, for example, name@example.com looks better than myname234@gmail.com.