Yes, if the server is set up for this, HTTPS can protect a given server from replay attacks. The usage of message authentication codes (MAC) in HTTP can efficiently accomplish this.
Using the best HTTPS certificates for any online transaction guarantees protection and secured data exchange without any replay attack. HTTPS also ensures data is encrypted over the internet. Because only the server and the user know the decryption keys, HTTPS makes sure that only the server and the user can share and access data.