Perils of making a PhD application merely to get funding
It can always happen that a PhD student may not complete, and for a wide variety of reasons, so I doubt that you could actually be prosecuted for fraud for a case like this, unless someone could really prove it.  But realise that whether or not fraud could be proven, such an action could be highly unethical.  Tax payers in your host country would be paying for something they didn't get, and supervisors and administrators would be investing time in someone believing they were likely to become a PhD.  It would be taking away funding from someone, possibly multiple people, who really did want a PhD, both because you would have taken money that could have gone to someone else, but also because in the future, an application similar to yours might not be ranked so well if the admissions board was afraid the outcome might be similar.