That only applies to USPS shipping. If the package was delivered onto your property, it is yours (legally) even if it has someone else’s name on it. Ethically, however, it’s not really yours and you should probably attempt to return it to Amazon or, if it is your neighbor’s, deliver it to them.