Of course. But one should not underestimate the advantages of a rental bike:
the rental bike is technically up-to-date and is available at the hotel of arrival. You can also leave your rental bike at the hotel and you won’t have to worry about the return transport.