Yes, but the shape of the resistance wire should match the shape of the tank so that when half the tank's capacity is there, it shows half full on the dial. This might be a long way from half-way deep up the tank depending on the shape of the tank.
You would also need to make sure the float can go fully down and up.
CharlesY