Let's say I visit a website that could potentially infect my computer by just from visiting it. If I disable JavaScript, is it still possible to infect my computer?

I have already searched the site for this question, but I only find questions like this that don't mention disabling JavaScript