Yes there is no prohibition in having one's own HUF a joint holder in flat purchase. But it would amount to throwing a share of your property in your HUF hotchpotch. Any income derived from this property (to the extent of HUF share) will be clubbed in your income alongwith your individual share.
Unless of course the HUF pays its share in the cost of the flat.