Yes you get paid for the flying. The issue is that you are tired, wanting to go home, and they tack on another 3 hours of flying broken airplanes.
I forget, but i know you dont get per diem during ground school or sim training; only for IOE if it is not at your assigned base.
You get paid on the 5th and 20th of each month.