Yes but it doesn't come naturally, usually the ones that prefer anal is because they were too scared to touch their vagina during puberty and instead explored their sexuality using their asshole, so they developed a preference for anal sex that way.
If you are with a playful girl you can groom her to enjoying anal more too.