Stucco around lumber
It is fine for stucco to be in contact with the lumber.  But if you are stuccoing over the lumber, you will need to protect it with a wrap and then the wire mesh for the stucco to hold on to.