In complex geometry, a complex surface $S$ is called a ruled surface if there is a holomorphic map $\pi:S\to C$ to a complex curve $C$ such that each fiber is $\Bbb CP^1$. Typical examples are $\Bbb P(L\oplus \epsilon)$ where $L\to C$ is a holomorphic line bundle and $\epsilon\to C$ is a trivial complex line bundle.
Is it true that for a smooth $S^2$-bundle $\pi:E\to B$ where $B$ is a Riemann surface that $E$ is a ruled surface?
I assume what you're asking is if, given any smooth, real $S^2$-bundle $\pi:E\to B$ where $B$ has a complex structure, there exists a complex structure on $E$ such that $\pi$ is a holomorphic $\mathbb{C}P^1$-bundle.
The answer is no. There are nonorientable $S^2$ bundles over Riemann surfaces, which carry no complex structure at all. One example is to start with the nonorientable $S^2$ bundle over $S^1$ (the mapping torus of the antipodal map), which I'll denote $\pi:E\to S^1$ and multiply by $S^1$ to obtain $\hat{\pi}:E\times S^1\to T^2$. The base space can be given a complex structure, but the total space cannot.