Gantt View - Multilevel Dependency Tracking

Would it be possible to add the dependency tracking between different level tasks in gantt view? My use case is when a subtasks is moved outside of the range of the parent task, the parent tasks updates either the start or end date based on the subtask. For example, a parent task has an end date on the end of september, but the latest subtask is moved to end at the end of october, then the parent task auto updates to end at the the end of october as well. This would also work for start dates moving based on the earliest subtask start date.