I don't know for certain if the second sentence is wrong, but I find the first sentence more natural sounding. If you were to put "can you play" at the beginning, it wouldn't make any sense at all. Then you would have to use normal word order.
I completely agree with SlickVic9000. The inverted worder sounds much better and so I would also use the first sentence.
I can't find a reference right now, but I have found two similar sentences on this site.
Only after you helped me I was able to solve the problem.
Only after you helped me was I able to solve the problem.
As you see, the inverted word order is deemed correct.
Edit. I've found more examples:
When only after, only if, only in this way etc. are placed at the beginning of the sentence for rhetorical effect, the subject and auxiliary are inverted:
Only after lunch can you play. (You can play only after lunch.)
Only after finishing your homework can you play. (You can play only after finishing your homework.)
Only after you have finished your homework can you play. (You can play only after you have finished your homework.)
Last edited by Chicken Sandwich; 15-Nov-2012 at 01:12.
Reason: more examples