In JAA countries it is allowed to become a commercial pilot with eye surgery. However, there is a risk that after the surgery you become very sensitive to sunlight. If this happen, you cannot work as a pilot. So there is allways a risk but if the surgery goes well you´re set to go