Are XP programs compatible with linux?

Since I’m having some problems with my XP, I’m thinking about installing linux instead since I heard it’s more stable and versatile.

Are XP programs compatible with redhat Linux?

Is Linux server oriented? Is it suitable as an os for pc?

Any inputs are appreciated…