The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
In no event shall Author be liable for any damages wha2tsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
As already noted by Milan, BGP is a routing protocol.
As also already noted by Milan, you can use a BGP network statement to inform BGP to accept a network prefix, but the network statement works a bit differently for BGP than it does for OSPF.