No, you must apply for a Schengen tourist visa at the Spanish consulate or embassy in your home country or the country where you have legal residence.