If there are guardrails and a high parapet wall surrounding the terrace garden, it is possible to utilize it safely as a garden. It is best not to plant a garden in locations where there aren't adequate safety measures in place.