Yes, it is generally safe to switch between 5W-20 and 5W-30 oil. However, it is important to check your owner's manual or consult with a mechanic to ensure that the oil you are using is compatible with your vehicle's engine.