Can Women Ask Pastors Questions, Or Only Their Husbands?

1 Corinthians 14:35
Right Response Staff

“If there is anything they desire to learn, let them ask their husbands at home. For it is shameful for a woman to speak in church.” 1 Corinthians‬ ‭14:35‬ ‭ESV‬‬

The Bible seems to indicate that women should reserve their theological questions for their husbands. If so, how far should this principle be applied?