Yes, if $F$ is infinite. The set of symmetric matrices $Q$ such that $AQ=QB$ is a vector space $V$ over $F$. We know that $V\otimes _FK\neq 0$, hence $V\neq 0$. The invertible matrices form a Zariski open subset $U$ of $V$ (defined by $\det\neq 0$). Again we know that $U\otimes _FK$ is a nonempty Zariski open subset of $V\otimes _FK$; sincepolynomial $V$$\det_{|F}$ is Zariski densenot identically zero in $V\otimes _FK$, hence in $U$$V$ since $F$ is nonemptyinfinite. Thus there exists $Q\in V$ invertible.