Yes, there are two different URLs, and they both work. api.pipedrive.com is the general one, and {company}.pipedrive.com is specific to your Pipedrive company.
We advise everyone to use {company}.pipedrive.com for faster requests as it helps us to better determine which data center your request should go to.
I hope this answers your questions. Please let us know if you have further questions.