I assume you did not get a pre-purchase inspection done? As for the codes, a seller can clear the codes or disconnect the battery to make the code go away for a sale, some codes do not return for quite some time. or no codes after they are all done going through their process an a problem only presents a check engine code now and then. or there was a problem and the previous owner jerry-rigged a temporary fix. Back in the old days, dealerships would sell cars with bad transmissions, they would put a bunch of sawdust in the fluid and it made the trans run normal for a short time, just long enough to get it off the lot.
Report back with the code.
Also can you make a recording of the sound and post it on youtube or somewhere else where we can hear it. Also, can you tell exactly what direction you hear it from, under the dash, behind you, in the floor? Any vibration with the sound? Does the car make a sound if you press on the gas while in the park or neutral and parked or only when going down the road?
But do not get too stressed just yet, might be something very minor.
I know in some situations you can get gurgling from the fuel tank, a clog in the line or a hole in the tank can cause gurgling or I have heard in some cars even a loose gas cap can cause it. With the car parked and running, walk around the car to the gas tank side and see if you can hear anything, have someon step on the gas and see. Check your fuel cap. A loose fuel cap can also throw a evap code check engine light. If your code is Evap, then I would think some kind of air leak in the fuel system, may just be a loose or bad gas cap.
Post back.