Yes it will. A GFCI monitors how much current goes out through the hot leg vs how much is being returned through the neutral. If more is going out than is coming back, it assumes the difference is probably flowing through a bobby pin to a toddler, and it cuts the circuit in a jillionth of a second or some timeframe that prevents the toddler from receiving a dangerous shock.
AFCIs are designed to somehow measure arcing. A loose connection may be generating enough heat or sparks to start a fire without passing enough current to trip the breaker.
AFCIs and GFCIs are designed to do different things.