Yes but still the marriage will remain Illegal Islamically
It is like The Water is water. You can drink coca cola as an alternative but you cannot get the taste of water. By drinking coca cola you might not remain thirsty but it will still be called a Coca cola and will not become water haha just joking
I mean religiously marriage will remain illegal as the marriage between Muslim and Hindu cannot be performed