Age matters on some level, but I think experience, maturity, similar lifestyles, attitudes, compatibility, matters more.
You can be attracted to someone younger or older, but if you're not personally, socially, and sometimes culturally compatible, then it's not likely to work as well.
It's very easy to be attracted to something different and unusal, and be caught up in that new love feeling where everything is exciting, only to find out later on that it's not feasible for the long term. Not that you don't learn or enjoy the experience as it's happening, but you may later realize that some things are not as satisfying or fulfilling as it may seem, however attractive the idea may be.