That is certainly possible, the easiest is to book an organized day trip from New York to Atlantic City. Read all about it here.