that will work just fine as long as both switches are normally closed type of switches. When either switch is triggered both X and A will light up but it doesnt matter as they will never home at the same time. I put many switches in series like that. You could effectively put them all on the same pin if you had to.