Fuel gauges in cars are a linear measuring system, but measuring something that is not linear. So no, they are never accurate.
The fuel gauge is just measuring the height of the fuel in the tank. The top of the tank is much wider and contains more fuel, so it goes down slower. The bottom of the tank is much smaller, so it drains quicker.