Is firefox https only mode capable of prevent malicious http websites from running code?

I just typed gmai . com (I added the spacing) instead of gmail.com, after hitting enter firefox immediately show an alert saying the site doesn’t provide a https version because I have enabled the https only mode. After scanning the url in virus total it is evident that the site is malicious but my question is: was firefox https only mode capable of stopping any code this website might had tried to run.

submitted by /u/G-TN
[link] [comments]