Suppose we have a process given by $S_t = S_0 \exp(\sigma W_t + (r - \frac{1}{2} \sigma^2 )t)$, and we wish to find the marginal distribution for $S_T$. (Note: $W_t$ is a $\mathbb{Q}$-Brownian Motion)
My book states that the marginal for $S_T$ is given by $S_0$ times the exponential of a normal with mean $(r - \frac{1}{2} \sigma^2)T$ and variance $\sigma^2 T$. How did they arrive at this conclusion?
I know that a random variable $X$ is a normal $N(\mu, \sigma^2)$ $\iff$ $\mathbb{E}[\exp(\theta X)] = \exp(\theta \mu + \frac{1}{2} \theta^2 \sigma^2)$. Is this the key observation, or am I missing something?