The mechanic told me to tell the transmission shop that the cde that came up said module? It jerks when it shifts and wont shift after second gear! It's like it's stuck and it just hums so to speak but i can still drive at a faster speed. Is it dangerous to be driving the car?

do not drive it till it is fixed. you can do a lot of damage the way it is. if it is the module, the trans can return to normal operation. by driving it, you may damage internals requiring overhaul.
have it verified at trans shop.
Roy