The short answer is yes. The name on your passport needs to match your ticket. It must match all your travel documents, including your visa (if required). This is because airlines must verify your identity before allowing you to board the plane, and they do so by checking your passport and other travel documents.