If you are not in the business of renting out building, yes it can be investment property.
Investment property is property (land or a building or part of a building or both) held (by the owner or by the lessee under a finance lease) to earn rentals or for capital appreciation or both. [IAS 40.5]