Executive Summary: Yes. Time does matter, but it matters far less than creating a good question. Don't hesitate to ask a good question just because of the time of day.
There are definitely times with higher traffic than others (all times in the graph are in GMT). Time matters most in high-traffic tags where there is a steady flow of traffic (see top tags) since questions will push your answer off the top of the page. On smaller tags, this is less of an issue as many people browse all the questions submitted on that tag.
People generally post during the work day (9-5 on weekdays), and users are primarily located in the US, followed by Europe, then Asia (more info). So if you post at this time (midnight East Coast US, 9pm West Coast US, 5am UK, etc.), then your question will likely get viewed primarily by Asian/Oceanian users, and then the European users as they trickle in.
To give your question the best shot, read the help center on asking a good question, especially the part on including a code example. Make sure to create a useful title, and to tag your post appropriately. If your question is good, it will get noticed as it will get bumped any time someone gives an answer to it (and if the question is good, someone will likely give an answer to it because you've made it easy for them).