Does the "on a rail" achievement work in the Nether?

According to the Minecraft Wiki:

Travel by minecart to a point at least 500 blocks from where the player started. Distance is measured in a straight line.

It doesn't specify what dimension you need to be in so this means you need to travel 500 blocks regardless on whether you're in the Overworld or not.