Social benefits + visa

If I retire on a work visa such as H1B or L1, am I eligible to receive social security benefits?