Depends on your institution. You are not eligible for a state license until after your intern year. Some programs require you to have a state license for PGY2 and so on, while others will have an institutional license for the duration of the residency. If you plan on moonlighting, you need your own state license.