iCloud two-factor authentication on OS X Yosemite I have 3 Apple devices, an iPhone and iPad both running iOS 11 and a MacBook Pro running OS X Yosemite 10.10.

On the iOS devices I am getting alerts to enable two-factor authentication for my iCloud account.

Will enabling it restrict me from accessing my iCloud account on my MacBook Pro?
As outlined in the Apple support document, Availability of two-factor authentication for Apple ID:


  Two-factor authentication is available to iCloud users with at least one device that's using iOS 9 or OS X El Capitan or later.


Since your iOS devices are running iOS 11, you should be covered.