If $f\in\mathbf{C}[[q]]$ is non-constant, and algebraic over $\mathbf{C}[q]$ (in the sense that it is a root of a polynomial with coefficients in in $\mathbf{C}[q]$) then can $f$ be the $q$-expansion of a modular form (for some congruence subgroup of $SL(2,\mathbf{Z})$)? I ask for the following reason. There are geometers in my department who occasionally come up with $q$-expansions (probably from counting things in geometry) and ask if these things are likely to be modular forms. Sometimes they are, sometimes they aren't, sometimes I don't know. But one that came up today I noticed was non-constant and algebraic over $\mathbf{C}[q]$ and so I instantly said that this should rule it out, and then I realised I could not immediately point to a proof of this. Katz proved many years ago that a non-constant polynomial in $q$ can't be the $q$-expansion of a modular form but it's been a while since I looked at the proof and I don't know if it generalises. I need to go and do something else now but in a few hours I might come back and see what's happened to this question and add more if necessary.