Let $\mu$ be a probability measure on $(\mathbb{R},\mathcal{B}(\mathbb{R}))$, where $\mathcal{B}(\mathbb{R})$ denotes the Borel sets.
Then, is it true that there exists a probability space $(\Omega,\Sigma,\mathbb{P})$ and a random variable $X$ defined on this probability space such that
$$ P(X \in B) = \mu(B)$$ for every borel set $B$?
I know the "converse" of the claim is true: given a random variable $X$ on some probability space, there exists a probability measure on $\mathbb{R}$ such that $ P(X \in B) = \mu(B)$.