When a chunk is unloaded, so are the mobs (and all other items) on it, although passive mobs won't be removed.
Running away will usually allow you to stay out of the reach of hostile mobs, since a chunk needs to be loaded a certain amount of time before mobs will start to spawn, but the chunks...