Yes when you have a Stye on your Eye the Stye Is contagious and will remain contagious to other people until the Stye has gone away.
Avoid contact with other people when you have a stye and avoid touching someone else who has a Stye until the Stye has gone away.
If the bacteria that is causing the stye comes into contact with someone else's eyes then they can get a Stye from you.
To get rid of a Stye on your Eye you can try massaging the area to help promote drainage and apply some antibiotic ointment to the stye.
Using a warm compress on the stye can also help and cleaning your eyelid with some mild soap and water can help get rid of the bacteria and promote healing of the Stye.