To say "Can you speak Russian?"

The program I'm learning from taught me that it's "Ты можешь говорить по-русски?"
But when I run that through google translate it says "Можете ли вы говорить по-русски?"

What's the difference? Are they both right?