Is redness and pain in the corners of the eyes contagious?

Not necessarily.
Local inflammation resulting in eye disease may lead to redness, swelling and pain in the corner of the eye, but not all infectious inflammatory diseases are contagious. Generally acute infectious conjunctivitis is contagious and can be transmitted by contact; ocular herpes zoster is caused by varicella zoster virus and is also contagious.