To pursue means to follow, to chase or to seek, like steps on a journey.
To attain means to gain, to achieve or to succeed, like the destination of a journey.
These two words have different meanings in English.
If you pursue something, you might attain it, but it is not a certainty.
Hope this helps