Battery question!

So basically I have a 38ah stock surron battery and when we go to ride trails it’s dies pretty quick in the thick sand! And my friend has a surron he doesn’t use but he has a stock surron 40ah battery and I was wondering if his battery would work on my bike with all stock power! Pls lmk mine is the first slide his is the second!