Assign a child at checkout

I am trying to build a registration platform for my after-school drama classes. I found how to allow parents to register for the app and then create “profiles” for their child/children. I need them to be able to assign one child to each class (or product) at check out, so I can connect the child profile on the backend to the class. Is this possible??