It is hard to say in general, but recent examples of damage caused by natural disasters have occurred frequently on sloping land, so it cannot be said to be safe.
Particular attention should be paid to the fact that when mountainous land is developed, it is either "cut" to remove the land or "filled" with soil, but the filled areas in particular can collapse due to heavy rain even if there is no strong earthquake.