No, but you have to punctuate slightly differently: Mary can ride a horse, but she can't ride a bike. Mary can ride a horse but can't ride a bike. Mary can ride a horse but not a bike.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.