My question is the title, but let me be more specific: for schemes $X$ and $Y$ over $S$, with at least one non-separated over $S$, is it true that the fibered product $X\times_S Y$ is also not separated over $S$?
My instinct says "no" because of the remarks at the top of page 95 in Hartshorne: "The rough idea is that in order for a schemes $X$ to be separated, it should not contain any subscheme which looks like a curve with a doubled point..." So if $X$ is not separated, it contains such a subscheme, and thus so should the product $X\times_S Y$.
I tried proving the claim using the valuative criterion, and I think I was able to do it. Unfortunately, I don't know how to typeset diagrams here (it seems xymatrix is not supported), but the idea is to take 2 of the different morphisms from $T$ to $X$ (using the notation of Hartshorne here in which $T = \text{Spec}(R)$ for a valuation ring $R$) and make them morphisms to the product. Unless I overlooked something, the proof was pretty simple.
Is all this correct or are there counter-examples out there?
EDIT: As pointed out by Martin Brandenburg below, in general, the product of non-separated schemes could be separated. However, I think it is true that if the schemes are all over some field $k$ then non-separated-ness is preserved under taking products. Is this true, and if so, how would one prove it?
Edit: Clean up and some simplifications.
So suppose we work over a ground field $k$. Then the answer is yes.
As $Y$ is noetherian and non-empty, it contains a closed point $y\in Y$. Let $K=k(y)$. Then $X_K:=X\times_k \mathrm{Spec}(K)$ is separated because it is a closed subscheme of a separated scheme.
Let $\{ U_i\}_i$ be an affine covering of $X$. Then $\{ (U_i)_K \}_i$ is an affine covering of $X_K$. By the separatedness, $(U_i\cap U_j)_K=(U_i)_K\cap (U_j)_K$ is affine and the canonical map $$ O_{X_K}((U_i)_K)\otimes_K O_{X_K}((U_j)_K) \to O_{X_K}((U_i)_K\cap (U_j)_K)$$ is surjective. As $k\to K$ is faithfully flat, it is known that $U_i\cap U_j$ is then affine (as $X$ is noetherian, $U_i\cap U_j$ is quasi-compact, this is needed in the proof of affiness, see e.g. here), and $$O_X(U_i)\otimes_k O_X(U_j)\to O_X(U_i\cap U_j)$$ is surjective. This is equivalent to $X$ separated. By symmetry, $Y$ is separated.