You should get chickenpox vaccine within 3 to 5 days of being exposed. Even if more than 5 days have passed since you were exposed, vaccination with two doses is still recommended to protect against future exposures. You need 2 doses of vaccine separated by minimum of 28 days.