Dear friend, you will not get pink eye if you just see their pink eye. There are many kinds of pink eye. Some of them just like a common infection and will not infect others. But some of them are highly contagious. If their pin eye is caused by viral, you must avoid sharing the same stuff such as pillow with him or her, because this kind of pink eye is contagious.
I think you won't. The pink eye that caused by herpes virus is highly contagious. It is easy to spread to other people. We can't share pillows, towels, linens, or handkerchiefs with the people who have pink eye. The linen can be a cause of re-transferring the infection in our daily life. We also can't share eye medicine with these patients. But we can wear eye protection to protect our eyes from getting an infection.