Can a via go in the middle of a trace?
VIA in trace is OK unless you are designed for high speed signals or very high current.  The change in impedance and capacitance can cause signal integrity issues, reflections, for high speed signals.  Also keep in mind if the trace is carrying a lot of current, as the size of the "donut" can affect the amount of current flow (resistance change, temperature rise).