Yes, but it is better to concentrate on an object and then to close your eyes for visualization, since this exercise involves both concentration and imagination, which are essential for entering into meditation.
For thirty years I sought God. But when I looked carefully I found that in reality God was the seeker and I the sought. -Bayazid al-Bastami