They can be litter trained even though they are not neutered or spayed. It will just be a lot more work.
Had a buck for 8 years that never was neutered, he always went to his litter box.
The same with my other bunnies, they where all litter trained before I fixed them. So they don’t get the habit to not use the litter box. Also I don’t have to think about after they are fixed to litter train them
Best way to train them it’s to let them be in a controlled space, where you can easily clean up after their accidents. The litter box should have hay in it and water bowl + food bowl nearby.
Then you only need to keep on cleaning after them, placing their droppings in the box.
You will need to use some fragrance that can hide a bunnies urine odor. Myself always use vinegar, because it’s something myself use for food.
Because bunnies will often go where it smell like litter box for them. It will also help using a bit of paper that wiped up their pee and place it in the litter box, so it will get the smell.
Sometimes you can also catch them before they start to pee, they will often lift their tail. If you manage to see some of their behaviors before peeing, you can pick them up and place them in the litter box. But this is really hard to see and notice.
Around 4 months and up they will start marking and lose their litter training (at least outside their cage). So you will have to restate the litter training again.