No, a vapor barrier is plastic material that is used to prevent vapor emissions from coming through the subfloor. An underlayment is often constructed of soft foam material and used to solve multiple concerns and should not be used as a substitute for vapor barrier.