You asked:

is spain a part of europe

Yes, Spain is a part of Europe.
Spain
Spain
Spain

Europe
Europe
Europe