It is not mandatory, but it is always advisable to register with the local authorities while planning your visit to Vietnam.