Really? I know someone who got a PhD position by doing just that. Talking to a professor directly seems like a great idea as long you're sure you're not wasting their time (i.e. that you're a suitable candidate).
Even if you don't get the position, there's still a lot of value to be had from a conversation (for both parties).