"post hoc ergo propter hoc" refers to situations in which, because two things occur close together in time, an assumption is made that one causes the other.
True. However, just because two things occur close together in time does not mean that one causes the other. It is just an assumption called “post hoc ergo propter hoc”.