Yes. An initially friendly takeover bid could turn into a hostile takeover if the board or shareholders reject the buyout terms.
It’s possible, though rare, for an initially hostile takeover to become friendly, as the target and acquiring company seek to find common ground and agree on the buyout terms.