Taking the Gas cap off will not release the pressure, but it will better facilitate the release of pressure when you undo the service bolt where the fuel line meets the filter.
I gave you this answer because, yes, you should take it off, but doing that alone will not relieve the pressure in the line -if it did you would need to reprime every time you filled up.