Yes. The verse is Manusmṛti 3.56. The same text also contains verses restricting women's independence (e.g. 5.147–148, 9.3). Quoting 3.56 alone gives an incomplete picture of the text's view of women.
Read sources & contribute → sanatanfacts.online