Nope.
Azure Notification Hubs are exclusively for push notifications for mobile platforms.
If you want a code to receive a notification you shall take a look at Azure Service Bus Queues, Topics and Subscriptions. Then decide which of all to use.
It is mentioned in Notification Hubs FAQ (Do you support text message, email, or web notifications?) that you can do it by using SignalR on top of Notification Hubs :
Customers can implement this feature using SignalR on top of the supported server-side platforms.