Yes – you can ask the judge or magistrates for a break or toilet break if you need one during questioning.