Might need to know a bit more about your setup to be sure I'm giving appropriate advice but bear in mind that, if we're talking about JUST MX here then the BGP or OSPF (whichever you're using - and it wouldn't be both) is intrinsically tied in to the AutoVPN operation. Turning off AutoVPN will tear down any VPN tunnels to/from that MX. If it's a Hub MX, chances are it will be a lot of tunnels.
So basically, whether BGP or OSPF is enabled or disabled is a bit neither here nor there - if AutoVPN is off, what is the routing protocol carrying routes in and out of..?
Here's a slightly daft analogy; it's like worrying about the state of the two interconnecting A-roads for your motorway, when the whole junction has been closed.
One slight caveat; this might be slightly different if your MX is in routed mode...
Hope that makes some sense.