Yes. In addition to doing routine checks on flight status and fuel every so often, they are allowed to chat about things unrelated to the flight while the plane is at its cruising altitude. One of the issues on a long flight is that pilots tend to get bored and non-attentive so talking to each other helps.