Answer
False
Work Step by Step
Recall:
The union of sets A and B is the set that contains the combined elements of the two sets.
$(-\infty, 7)$ contains all the real numbers that are less than $7$.
$(7, \infty)$ contains all the real numbers that are greater than $7$.
Thus,
$(-\infty, 7) \cup (7, \infty) \ne \left\{7\right\}$
Hence, the given statement is false.