In a word, yes. What you did was a pretty clear signal. If he's into you, then you should get a text from him. I would say that your approach was a bit direct (as opposed to, say, coming up with an excuse to strike up a conversation with him before giving him your number), but that seems to be more acceptable for women than for men. Even if he is not interested, he will probably be flattered.