I'm still a beginner, not yet conversational in French, but from what I hear and use here in Québec, you can construct the questions either way. Pronoun then verb, or verb-pronoun are pretty much interchangeable. "Peux-je avoir un sac," or "je peux avoir un sac?" both work to ask if I can have a bag.
Duolingo generally seems to accept the same thing in English, and when it doesn't, I report it.