Yes, you can stay extra nights before and/or after the training.
For our Amazon jungle training at the Kantu Garden Lodge, the cost for 1 night in a private room is 60$ and includes breakfast the next morning. You can directly pay via credit cards or in soles upon arrival.