Yes, you can use a 302 redirect to redirect your website from HTTP to HTTPS. However, if you need a permanent redirect, you should use a permanent 301 redirect instead.