If you write your call options at a strike price above the current stock price and the call gets exercised (because the stock price rose above the strike price), the worst that can happen is your shares get called away at that strike price and you keep as compensation the covered call premium.