Using a neural network to learn regression in image processing
Yes - neural networks can be used to predict regression problems. The output layer will be a set of nodes that make continuous numeric predictions.
In your problem, it would be two nodes that learn the weights for $\theta_1$ and $\theta_2$.