Only if it was choosing between one of two answers to begin with. The analogy is a bit weird here because there's far more than two potential answers it could give but it still manages to pick the right one almost half the time.
True/false answers to programming questions don't build apps.
I would expect a coin to do it 0% of the time.
Unless the question was "write a program that simulates a coin flip"